package com.heima.service.impl;

import com.heima.dao.UserMapper;
import com.heima.pojo.User;
import com.heima.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 用户Service实现类
 */
@Service
@Slf4j
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public void add(User user) {
        log.info("[用户-添加]data:{}",user);
        userMapper.insert(user);
    }
}
